<template>
	<view class="search-import">
		<view class="input-model">
			<image src="/static/images/search.png" mode=""></image>
			<input type="text" v-model="searchValue" placeholder="请输入搜索的内容" />
		</view>
		<view class="search-button">
			<button type="default" @click="search">搜索</button>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'searchImport',
		data() {
			return {
				searchValue: '', //输入的搜索的内容
			}
		},
		methods: {
			search() {
				console.log(this.searchValue);
				this.$store.commit('setwebIframSearch', this.searchValue);
				uni.navigateBack();
			}
		}
	}
</script>

<style lang="less" scoped>
	.search-import{
		display: flex;
		align-items: center;
		padding: 20rpx;
		background-color: #eeeeee;
		.input-model{
			background: #ffffff;
			border-radius: 8rpx;
			display: flex;
			align-items: center;
			padding: 14rpx 15rpx;
			margin: 0 30rpx 0 10rpx;
			flex: 1;
			image{
				width: 30rpx;
				height: 30rpx;
				margin-right: 10rpx;
			}
			input{
				color: #666666;
				font-size: 24rpx;
				
			}
		}
		.search-button{
			width: 150rpx;
			border-radius: 8rpx;
			button {
				width: 100%;
				border-radius: 8rpx;
				font-size: 28rpx;
				background: #11C3ED;
				border-radius: 5rpx;
				height: 60rpx;
				line-height: 60rpx;
				color: #ffffff;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}
	}
</style>
